import request from '@/utils/request'

// 查询床位分配信息列表
export function listAssign(query) {
  return request({
    url: '/hospital/assign/list',
    method: 'get',
    params: query
  })
}

// 查询床位分配信息详细
export function getAssign(assignId) {
  return request({
    url: '/hospital/assign/' + assignId,
    method: 'get'
  })
}

// 新增床位分配信息
export function addAssign(data) {
  return request({
    url: '/hospital/assign',
    method: 'post',
    data: data
  })
}

// 修改床位分配信息
export function updateAssign(data) {
  return request({
    url: '/hospital/assign',
    method: 'put',
    data: data
  })
}

// 删除床位分配信息
export function delAssign(assignId) {
  return request({
    url: '/hospital/assign/' + assignId,
    method: 'delete'
  })
}
